package com.zhaorui.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName activity_dictionary
 */
@TableName(value ="activity_dictionary")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ActivityDictionary implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 字典类型:userlevel
     */
    private String dicType;

    /**
     * 字典key
     */
    private String dicKey;

    /**
     * 字典内容
     */
    private String dicValue;

    /**
     * 备用1
     */
    private String rem1;

    /**
     * 逻辑删除：0：正常；1：停用
     */
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Integer del;
    /**
     * 注册时间：自动填充
     */
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createtime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}